<ul id="user_options">
  <% if logged_in? %>
  <li><%= :logged_in_as.localize_with_args :login => render_user(current_user) %></li>
  <li><%= link_to :my_profile.l, profile_url %></li>
  <li><%= link_to :log_out.l, :controller => 'account', :action => 'logout' %></li>
  <% else %>
  <li><%= link_to :log_in.l, :controller => 'account', :action => 'login' %></li>
  <li><%= link_to :sign_up.l, :controller => 'account', :action => 'signup' %></li>
  <% end %>
</ul>